n = int(input("请输入斐波那契数列项数："))

a,b = 0,1
count = 0

if n <= 0:
    print("项数必须是正整数")
else:
    print("斐波那契数列：")
    while count < n:
        print(a,end=" ")
        a,b = b,a+b
        count += 1
        
